package de.tum.in.far.threedui.superbrickball.engine.physics.models;

import javax.media.j3d.Transform3D;
import javax.vecmath.Quat4f;
import javax.vecmath.Vector3f;

public class BoxModel extends PhysicalModel{
	private Vector3f position;
	private Quat4f rotation;
	private float length, width, height;

	public BoxModel(Vector3f position, Quat4f rotation, float length,
			float width, float height) {
		this.position = position;
		this.rotation = rotation;
		this.length = length;
		this.width = width;
		this.height = height;
	}

	public Vector3f getPosition() {
		return position;
	}

	public void setPosition(Vector3f position) {
		this.position = position;
	}

	public Quat4f getRotation() {
		return rotation;
	}

	public void setRotation(Quat4f rotation) {
		this.rotation = rotation;
	}

	public float getLength() {
		return length;
	}

	public void setLength(float length) {
		this.length = length;
	}

	public float getWidth() {
		return width;
	}

	public void setWidth(float width) {
		this.width = width;
	}

	public float getHeight() {
		return height;
	}

	public void setHeight(float height) {
		this.height = height;
	}
	
	public Transform3D getTransform3D()
	{
		Transform3D t3d = new Transform3D();
		t3d.set(this.position);
		t3d.set(this.rotation);
		
		return t3d;
	}

}
